package com.caiyouxi.system.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.system.model.MessageReceiversBean;
import com.caiyouxi.system.service.MessageReceiversService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("message_receivers")
public class MessageReceiversController {
    @Autowired
    private MessageReceiversService service;

    @RequestMapping("delete_message")
    public ResData delete_message(@RequestBody MessageReceiversBean bean){
        return service.delete_message(bean);
    }

    @RequestMapping("insert_selective")
    public ResData insert_selective(@RequestBody MessageReceiversBean bean){
        return service.insert_selective(bean);
    }

    @RequestMapping("select_by_primaryKey")
    public ResData select_by_primaryKey(@RequestBody MessageReceiversBean bean){
        return service.select_by_primaryKey(bean);
    }

    @RequestMapping("update_selective")
    public ResData update_selective(@RequestBody MessageReceiversBean bean){
        return service.update_selective(bean);
    }

    @RequestMapping("select_all_message")
    public ResData select_all_message(@RequestBody MessageReceiversBean bean){
        return service.select_all_message(bean);
    }
}
